﻿namespace WindowsFormsApp1
{
    public class GetCompare
    {
        public static int Compare(decimal min, decimal max, decimal nub)
        {
            int isok = 0;
            if (nub < min)
            {
                isok = -1;
            }
            if (nub > max)
            {
                isok = 1; ;
            }

            return isok;
        }


    }
}
